export default function () {
  const rules = {
    email: {
      required: true,
      message: '邮箱格式不正确',
      type: "email",
      trigger: ['blur']
    },
    password: {
      type: "string",
      required: true,
      max: 18,
      min: 6,
      // TODO 特殊字符限制需要吗？
      message: '密码为[6, 18]位',
      trigger: ['blur']
    }
  }

  return {
    rules
  }
}